package com.ehl.utb.cloud.test.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * 请输入注释
 * <p>
 * 文件名称：{@link InitListener}
 * <p>
 * <b>
 * Creation Time: 2022/5/31
 *
 * @author lyw
 * @version 1.0.0.0
 * @since 1.0.0.0
 **/
@Component
@Slf4j
public class InitListener implements ApplicationListener<ApplicationReadyEvent> {

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        log.info("服务启动完成");
    }
}
